<template>
  <div>
    <searchBar type='3'title='网易严选' />
    <div class="logoWrap">
        <img src="https://yanxuan.nosdn.127.net/static-union/164793255107785e.png">
    </div>
    <van-button icon="phone" type="primary" color="red" block @click="toPhoneLogin" >手机号快捷登录</van-button>
    <br/>
    <van-button icon="invitation" type="default" block @click="toEmailLogin">邮箱账号登录</van-button>
    <div class="bottomWrap">
        <div>微信</div>
        <div>QQ</div>
        <div class="last">微博</div>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import { Toast } from 'vant';
  export default {
    name:'Login',
    methods: {
        onClickLeft() {
            Toast('返回');
        },
        onClickRight() {
            Toast('按钮');
        },
        toPhoneLogin(){
            this.$router.push('/phonelogin')
        },
        toEmailLogin(){
            this.$router.push('/emaillogin')
        }
    },
}
</script>

<style lang="less" scoped>
.logoWrap{
    text-align: center;
    padding-top: 1.6rem;
    margin-bottom: 1.6rem;
    img{
        width: 2.68rem;
        height: .9rem;
    }
}
.bottomWrap{
    width: 100%;
    left: 0;
    position: absolute;
    bottom: .8rem;
    height: .4rem;
    display: flex;
    justify-content: center;
    div{
        height: .4rem;
        border-right: 1px solid #979797;
        padding: 0 .4rem;
        font-size: .28rem;
        font-style: normal;
        line-height: .4rem;
        height: .4rem;
        color: #7f7f7f;
        margin-left: .05rem;
    }
    .last{
        border: none;
    }
}
</style>